<?php

/**
 * 积分报名付费后回调处理
 * File redeemgood.php
 */
class redeemgood extends Callback {

    public function run() {
        //更新对应的商品的支付状态
        if ($this->data['goods_bm_id']) {
            $data = RedeemModel::model()->findByPk($this->data['goods_bm_id']);
            if (!empty($data)) {
                $data->pay_status = RedeemModel::PAY_STATUS_HAS;
                $data->save(false,array('pay_status'));
            }
        }
    }

}
